package bh;

import java.util.Scanner;

public class A1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("输入x值");
        double x = in.nextDouble();
        System.out.println("输入k值");
        double k = in.nextDouble();
        double i=0;
        if (x>0 && x<=30){
            i= Math.sin(Math.pow(x,k));
            System.out.printf("算式一值%s",i);
        }else if(x<=60 && x>30){
            i= Math.cos(Math.pow(x,1.0/k));
            System.out.printf("算式二值%s",i);
        }else if(x>60){
            i =Math.tan(x/k);
            System.out.printf("算式三值%s",i);
        }else {
            System.out.println("输入不符合要求");
        }
    }
}
